<div class="layui-card layadmin-header">
    <div class="layui-breadcrumb" lay-filter="breadcrumb">
        <a lay-href="">主页</a>
        <a><cite>系统管理</cite></a>
        <a><cite>账户管理</cite></a>
    </div>
</div>
<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-card-header layuiadmin-card-header-auto">
            <button class="layui-btn layuiadmin-btn" data-type="add">添加</button>
        </div>
        <div class="layui-card-body">
            <table id="layuiadmin-table" lay-filter="layuiadmin-table"></table>
            <script type="text/html" id="layuiadmin-app-btns">
                <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="edit"><i
                    class="layui-icon layui-icon-edit"></i>编辑</a>        {{# if(d.id != 1){ }}        <a
                    class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del"><i
                    class="layui-icon layui-icon-delete"></i>删除</a>        {{# } }}
            </script>
        </div>
    </div>
</div>
<script>
    layui.use(['admin', 'table', 'helper', 'baseTable'], function () {
        var $           = layui.$
            , admin     = layui.admin
            , setter    = layui.setter
            , view      = layui.view
            , table     = layui.table
            , helper    = layui.helper
            , baseTable = layui.baseTable
            , form      = layui.form;
        var config      = {
            title         : '管理'
            , requestUrl  : '/users'
            , formTemplate: 'admin/users/form'
            , tableCols   : [{
                field  : 'id'
                , width: 100
                , title: 'ID'
            }, {
                field     : 'group'
                , title   : '权限组'
                , minWidth: 100
            }, {
                field     : 'nickname'
                , title   : '管理员名'
                , minWidth: 100
            }, {
                field     : 'account'
                , title   : '登录账号'
                , minWidth: 100
            }, {
                field     : 'last_time'
                , title   : '最后登录时间'
                , minWidth: 130
            }, {
                field     : 'create_time'
                , title   : '添加时间'
                , minWidth: 130
            }, {
                title    : '操作'
                , width  : 150
                , align  : 'center'
                , fixed  : 'right'
                , toolbar: '#layuiadmin-app-btns'
            }]
            , areaWidth   : 450
            , areaHeight  : 400
            ,
        };
        baseTable.render(config);
    });
</script>